﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DTO
{
    public class MatchDTO
    {
        /// <summary>
        /// Mã trận đấu
        /// </summary>
        private int m_MATCH_ID;
        public int MATCH_ID
        {
            get { return m_MATCH_ID; }
            set { m_MATCH_ID = value; }
        }

        /// <summary>
        /// Số bàn thắng đội nhà
        /// </summary>
        private int m_HOME_SCORES;
        public int HOME_SCORES
        {
            get { return m_HOME_SCORES; }
            set { m_HOME_SCORES = value; }
        }

        /// <summary>
        /// Số bàn thắng đội khách
        /// </summary>
        private int m_AWAY_SCORES;
        public int AWAY_SCORES
        {
            get { return m_AWAY_SCORES; }
            set { m_AWAY_SCORES = value; }
        }
        private DateTime m_MATCH_DATETIME;
        /// <summary>
        /// Ngày thi đấu
        /// </summary>
        public DateTime  MATCH_DATETIME
        {
            get { return m_MATCH_DATETIME; }
            set { m_MATCH_DATETIME = value; }
        }

        /// <summary>
        /// Số khán giả
        /// </summary>
        private int m_ATTENDANCE;
        public int ATTENDANCE
        {
            get { return m_ATTENDANCE; }
            set { m_ATTENDANCE = value; }
        }

        /// <summary>
        /// Vòng đấu
        /// </summary>
        private RoundDTO m_ROUND;
        public RoundDTO ROUND
        {
            get { return m_ROUND; }
            set { m_ROUND = value; }
        }

        /// <summary>
        /// Đội nhà
        /// </summary>
        private TeamDTO m_HOME_TEAM;
        public TeamDTO HOME_TEAM
        {
            get { return m_HOME_TEAM; }
            set { m_HOME_TEAM = value; }
        }
        /// <summary>
        /// Đội khách
        /// </summary>
        private TeamDTO m_AWAY_TEAM;
        public TeamDTO AWAY_TEAM
        {
            get { return m_AWAY_TEAM; }
            set { m_AWAY_TEAM = value; }
        }

        /// <summary>
        /// Trận đấu đã diễn ra hay chưa
        /// </summary>
        private bool m_IS_PLAYED;
        public bool IS_PLAYED
        {
            get { return m_IS_PLAYED; }
            set { m_IS_PLAYED = value; }
        }
    }

    public static class MatchColumns
    {
        public static string MATCH_ID = "MATCH_ID";        
        public static string HOME_SCORES = "HOME_SCORES";
        public static string AWAY_SCORES = "AWAY_SCORES";
        public static string MATCH_DATETIME = "MATCH_DATETIME";
        public static string ATTENDANCE = "ATTENDANCE";
        public static string ROUND = "ROUND.";
        public static string HOME_TEAM = "HOME_TEAM.";
        public static string AWAY_TEAM = "AWAY_TEAM.";

    }
}
